﻿using PC.PickleJar.Domain;
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PC.PickleJar.Trello.Domain
{
	public class TrelloCardKey : ItemKeyBase<String>
	{
		private string shortUrl;

		public TrelloCardKey(String shortUrl)
			: this(shortUrl, String.Empty)
		{
		}

		public TrelloCardKey(String key, String shortUrl)
			: base(key)
		{
			this.shortUrl = shortUrl;
		}

		public override string ToString()
		{
			return
				String.Format(
					CultureInfo.InvariantCulture,
					"\"{0}\" ({1})",
					this.shortUrl,
					this.Value,
					Environment.NewLine);
		}
	}
}
